package com.zoomabug.list;

import java.util.List;

/**
 * {@link List} does not provide iterators that allow you to access the next
 * element of the list without advancing the cursor. This simple extension
 * provides iterators that allow access to the next (or previous) element
 * without advancing the iterator.
 * 
 * @author Jeff Axelrod
 * 
 * @param <T>
 *           element type to be stored in the list
 */
public interface PeekableList<T> extends List<T> {
   @Override PeekableListIterator<T> listIterator();

   @Override PeekableIterator<T> iterator();
}